package edu.ucla.cs.typecast.app.news;

public class ScriptParseException extends RuntimeException {
	private static final long serialVersionUID = 1L;

	protected String line;
	
	protected int lineNum;

	public ScriptParseException(String line, int lineNum) {
		super("Parse error at line" + lineNum + ": \"" + line + "\"");
		this.line = line;
		this.lineNum = lineNum;
	}
	
	public String getLine() {
		return line;
	}

	public int getLineNum() {
		return lineNum;
	}
}
